package com.morningstar.qs.basic.db.bean;

import java.util.Date;
import java.util.List;

import com.morningstar.qs.basic.db.util.BeanBase;

public class Component extends BeanBase implements  java.io.Serializable{


	private static final long serialVersionUID = 5151243889674246242L;

	
	private int compId;
	private String compCode;
	private String compName;
	private int parentId;
	private short category;
	private String editor;
	private String description;
	private Date createDate;
	private Date lastUpdateDate;
	//transient
	private boolean selected;

	public boolean isSelected() {
		return selected;
	}


	public void setSelected(boolean selected) {
		this.selected = selected;
	}


	
	private Component parentComponent;
	
	public Component() {
		super();
	}


	public Component(int compId, String compCode, String compName,
			int parentId, short category, String editor, String description,
			Date createDate, Date lastUpdateDate) {
		super();
		this.compId = compId;
		this.compCode = compCode;
		this.compName = compName;
		this.parentId = parentId;
		this.category = category;
		this.editor = editor;
		this.description = description;
		this.createDate = createDate;
		this.lastUpdateDate = lastUpdateDate;
	}


	public Component(int compId, String compCode, String compName,
			int parentId, short category, String description) {
		super();
		this.compId = compId;
		this.compCode = compCode;
		this.compName = compName;
		this.parentId = parentId;
		this.category = category;
		this.description = description;
	}
	
	@Override
	public String toString() {
		return "Component [compId=" + compId + ", compCode=" + compCode
				+ ", compName=" + compName + ", parentId=" + parentId
				+ ", category=" + category + ", editor=" + editor + "]";
	}


	public int getCompId() {
		return compId;
	}


	public void setCompId(int compId) {
		this.compId = compId;
	}


	public String getCompCode() {
		return compCode;
	}


	public void setCompCode(String compCode) {
		this.compCode = compCode;
	}


	public String getCompName() {
		return compName;
	}


	public void setCompName(String compName) {
		this.compName = compName;
	}


	public int getParentId() {
		return parentId;
	}


	public void setParentId(int parentId) {
		this.parentId = parentId;
	}


	public short getCategory() {
		return category;
	}


	public void setCategory(short category) {
		this.category = category;
	}


	public String getEditor() {
		return editor;
	}


	public void setEditor(String editor) {
		this.editor = editor;
	}


	public String getDescription() {
		return description;
	}


	public void setDescription(String description) {
		this.description = description;
	}


	public Date getCreateDate() {
		return createDate;
	}


	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}


	public void setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}



	public Component getParentComponent() {
		return parentComponent;
	}


	public void setParentComponent(Component parentComponent) {
		this.parentComponent = parentComponent;
	}
	
}
